import { MailOutlined, SettingOutlined } from "@ant-design/icons";
import { Navigate } from "react-router-dom";
import My from 'pages/my';
import home from "./home";
import Login from "pages/login";

const router: any = [
	home,
	{
		path: '/',
		element: <Navigate to="/home"/>
	},
	{
		label: "文章",
        path: 'ck',
		icon: <SettingOutlined />,
		children: [
			{
				label: "react",
                path: 'one',
                element: <My />,
			},
		],
	},
    {
        path: '*',
        element: <>404</>
    }
];
export default router;
